<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    
    <style>
        .v-enter,
        .v-leave-to {
            opacity: 0;
            transform: translateX(100%);
        }

        .v-enter-active,
        .v-leave-active {
            transition: all 1s ease;
        }

        .v-leave,
        .v-enter-to {
            opacity: 1;
            transform: translateX(0);
        }
    </style>
</head>
<body>
    <div id='app'>
        <a href="#" @click.prevent="isLogin = true">登录</a>
        <a href="#" @click.prevent="isLogin = false">退出登录</a>
    </div>
    <script>
    const vm = new Vue({
        el: '#app',
        data: {
        }
    })
    </script>
</body>
</html>